package com.danceforyou.common.util;

/**
 * Created by Administrator on 2018/7/16/016.
 */
public class Constants {

    public final static String PROJECT_NAME = "rookieCs";//项目名称

    public static final String SESSION_USER = "loginUser";//保存员工session键

    public final static int SESSION_INTERVAL = 60*60*3;//session超时时间

    public final static long ROLE_GLB_ID = 1L;//管理部
    public final static long ROLE_MJB_ID = 2L;//媒介部
    public final static long ROLE_XSB_ID = 3L;//销售部
    public final static long ROLE_CWB_ID = 4L;//财务部
    public final static String ROLE_GLB_CODE = "GLB";//管理部
    public final static String ROLE_MJB_CODE = "MJB";//媒介部
    public final static String ROLE_XSB_CODE = "XSB";//销售部
    public final static String ROLE_CWB_CODE = "CWB";//财务部
    //公司（yw_company）状态
    public final static int COMPANY_STATUS_DELETE = 0;      //删除
    public final static int COMPANY_STATUS_ENABLE = 1;      //启用
    public final static int COMPANY_STATUS_DISABLE = 2;     //停用
    //员工（xt_user）状态
    public final static int USER_STATUS_ENABLE = 1;         //启用
    public final static int USER_STATUS_DISABLE = 2;        //停用
    //消息（xt_message）状态
    public final static int MESSAGE_STATUS_DELETE = 0;      //已删除
    public final static int MESSAGE_STATUS_FILLIN = 1;      //未读消息
    public final static int MESSAGE_STATUS_READED = 2;      //已读消息
    //客户（yw_customer）状态
    public final static int CUSTOMER_STATUS_ENABLE = 1;     //启用
    public final static int CUSTOMER_STATUS_DISABLE = 2;    //停用
    //媒体（yw_medium）状态
    public final static int MEDIUM_STATUS_ENABLE = 1;       //启用
    public final static int MEDIUM_STATUS_DISABLE = 2;      //停用
    //付款申请（yw_payment）状态
    public final static int PAYMENT_STATUS_FILLIN = 1;      //待审核
    public final static int PAYMENT_STATUS_NOPASS = 2;      //审核不通过
    public final static int PAYMENT_STATUS_PASSED = 3;      //审核通过
    public final static int PAYMENT_STATUS_FINISH = 4;      //支付完成
    //回款申请（yw_receipt）状态
    public final static int RECEIPT_STATUS_FILLIN = 1;      //待审核
    public final static int RECEIPT_STATUS_NOPASS = 2;      //审核不通过
    public final static int RECEIPT_STATUS_PASSED = 3;      //审核通过

    //操作流程表（xt_operation）
    public final static String OPER_TABLE_CONFIG = "xt_config";//系统配置
    public final static String OPER_TABLE_ROLE = "xt_role";//岗位
    public final static String OPER_TABLE_USER = "xt_user";//员工
    public final static String OPER_TABLE_MESSAGE = "XT_MESSAGE";//消息
    public final static String OPER_TABLE_MEDIUM_LABEL = "yw_medium_label";//媒体类别
    public final static String OPER_TABLE_MEDIUM = "yw_medium";//媒体
    public final static String OPER_TABLE_CUSTOMER = "yw_customer";//客户
    public final static String OPER_TABLE_ORDER = "yw_order";//排期
    public final static String OPER_TABLE_PAYMENT = "yw_payment";//付款申请
    public final static String OPER_TABLE_RECEIPT = "yw_receipt";//回款申请

    public final static String[] OPER_ADD = {"ADD", "新建"};
    public final static String[] OPER_EDIT = {"EDIT", "修改"};
    public final static String[] OPER_DELETE = {"DELETE", "删除"};
    public final static String[] OPER_DISABLE = {"DISABLE", "停用"};
    public final static String[] OPER_ENABLE = {"ENABLE", "启用"};
    public final static String[] OPER_RESETPWD = {"RESETPWD", "重置密码"};
    public final static String[] OPER_SETPWD = {"SETPWD", "修改密码"};
    public final static String[] OPER_LOGIN = {"LOGIN", "登录"};
    public final static String[] OPER_LOGOUT = {"LOGOUT", "退出"};
    public final static String[] OPER_PASSED = {"PASSED", "审核通过"};
    public final static String[] OPER_NOPASS = {"NOPASS", "审核不通过"};
    public final static String[] OPER_PAY = {"PAY", "支付"};
    public final static String[] OPER_SETTLE = {"SETTLE", "结算"};
    public final static String[] OPER_DELEGATE = {"DELEGATE", "转授"};
    public final static String[] OPER_READ = {"READ", "阅读"};
    public final static String[] OPER_CALCULATE = {"CALCULATE", "重新计算利润"};
    public final static String[] OPER_AUTH = {"AUTH", "授权"};

    //系统配置项
    public final static String CONFIG_SHOW_RANK = "is_show_rank";//是否展示排行榜
    public final static String CONFIG_PRECISE_TAX = "is_precise_tax";//是否精准税额
    public final static String CONFIG_SUPERVISOR_ALL = "is_supervisor_all";//主管查看排期权限
    public final static String CONFIG_CUSTOMER_VALID_DAY = "customer_valid_day";//客户授权有效天数
    public final static String CONFIG_IP_WHITE_LIST = "ip_white_list";//访问IP白名单
    public final static String CONFIG_MAX_LOGIN_FAILED_NUMBER = "max_login_failed_number";//密码错误次数上限
    public final static String CONFIG_ORDER_PROFIT_FORMULA = "order_profit_formula";//利润计算公式

    //系统菜单待办编码
    public final static String MENU_BACKLOG_PAYMENT_AUDIT = "paymentAudit";
    public final static String MENU_BACKLOG_PAYMENT_PAY = "paymentPay";
    public final static String MENU_BACKLOG_RECEIPT_AUDIT = "receiptAudit";
}
